package ocean.flora;

import java.util.ArrayList;

import ocean.data.DataHolder;
import ocean.data.I.EntityBuilder;
import ocean.data.I.IdBuilder;
import ocean.fauna.I.Fish;

public class FloraBuilder extends EntityBuilder
{

    @Override
    public void generate() throws InstantiationException, IllegalAccessException
    {
	ArrayList res = new ArrayList();

	fill(res, DataHolder.getRockCount(), Rock.class);
	
	setPositions((ArrayList<? extends IdBuilder>) res);
	fillIdObjMatrix((ArrayList<? extends IdBuilder>) res);
	
	

	fill(res, DataHolder.getWaterPlantCount(), WaterPlant.class);
	
	setPositions((ArrayList<? extends IdBuilder>) res);
	fillIdObjMatrix((ArrayList<? extends IdBuilder>) res);

	DataHolder.setOceanFauna((ArrayList<Fish>) res);
    }

}
